package com.example.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.example.demo.bean.CmsMember;

@Mapper
public interface CmsMemberMapper {
    int deleteByPrimaryKey(String id);

    int insert(CmsMember record);

    CmsMember selectByPrimaryKey(String id);

    List<CmsMember> selectAll();
    List<CmsMemberMapper> queryAll();
    int updateByPrimaryKey(CmsMember record);

	List<CmsMember> allMemberWithParent();

	
	/**
     * 	按照文章编号，更新指定文章的状态。
     * @param memId
     * @param state
     * @return
     */
	int updateStateById(String memId, int state);

	
		
	
}